move main.js to head