Move scripts to end of body