On traversing an array in Javascript | Hacker News Reader