Made the jQuery plugin CommonJS/AMD compatible so that it will work for use with Browserify and RequireJS