started draft for some basic javascript ast rewriting.