moved scripts inside body