Haskell prelude ported to javascript