fixes for new version of jquery