changed init.js to main.js