new JS code generator