Implement logger monad in coffeescript