Moved scripts to end of body