Update generator.js (by build)