move javscript around