testing the code on multiple jquery versions