JS Promises Pattern | Hacker News Reader