an experiment with javascript and haskell