be sure jquery exist before changing the implementation order