The new version of jQuery doesn't work well with some functions