supports newer versions of jQuery