Update Generator.js