Adds support for jquery 2.1

This patch should be useful to people who are using browserify (or other commonjs module system) who want to use this module with the newer versions of jquery