Understanding currying in javascript | Hacker News Reader