move scripts to end of page