Make this module compatible with Browserify

This small tweak will check if jQuery is available on window if it's not on this. This allows the module to be Browserified.