Merge pull request #37 from pw374/master

javascript and references (2 separate issues)
Merge pull request #38 from pw374/master

fix runtime syntax error!
Merge pull request #40 from pw374/master

bug fixes
Merge pull request #42 from pw374/master

output parentheses for ocaml operators
clean up: remove spaces at end of lines