JavaScript iterator patterns | Hacker News Reader