implement browserify compatibility

I'm developing my chromeapp in node using browserify, and wanted to be able to require this as a module.

Thanks for the great work on this library!