Move js scripts to the top of the index page