moves jquery into the right place