Implement sequence monad in coffeescript