moves scripts to page end for speed