How do I convert an existing callback API to promises? | Hacker News Reader