move all scripts to end of body