Organizing a large JavaScript application | Hacker News Reader