Asynchronous programming in JavaScript using promises | Hacker News Reader