change in generator

same changes but to generator.js in js folder