generate main.js and main-coffee.js