updating the generator js file