changes for new version of jquery