ECMAScript code generator on steroids