Iterating over sparse arrays in Javascript | Hacker News Reader