Integrate with browserify
Added workarounds so that libraries that export

their API directly to the window object will work with browserify
release 1.4.1