moving scripts to the end of page