move scripts to bottom
move main.js to head