Update fragment-generator.js