move scripts inside body