add generate.js
changed generate.js to point to localhost