code to translate AST to js checked-in for reference