moved scripts at the end of body