compatibility with jquery >= 1.9

fix compatibility with jquery >= 1.9