Update blockgeneration.js