Parser for JavaScript, in Haskell