Update and rename script.js to main.js