Use functional programming techniques to write elegant JavaScript | Hacker News Reader