Some attempts to implement monad in JavaScript