Create a JS code generator.