move main js to end of index.html