documented the JS codegen
fixes #1418
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel