Alternatives to singletons in javascript | Hacker News Reader