Rearrage jquery dependancies