javascript: factor AST into own module
javascript: whitespace
javascript: wrap exceptions in function
Merge pull request #1387 from raichoo/javascript

Javascript