PoC JS monad