Moving main.js to head