Base change from syntax tree to JS