Update and rename init.js to main.js