Update and rename head.js to main.js