Add support for Browserify

Added a condition to detect a CommonJS environment and load jQuery via `require`.