YAML to JavaScript and annotated AST