moving non js code