Fix bug: wrong url was requested in generate.js