move scripts to append body