Replace generator main.js, works now