Implementing monads in JavaScript with ES6 generators | Hacker News Reader