move scripts to bottom of body