Another scala-like implementation of option (maybe) monad for JS