Update block.js and generator.js