Initial JavaScript port (syntax tree only)