Made script Browserify-compatible

I was delighted to find that this was already AMD-compatible, but needed CommonJS support, so I added it in unintrusively and hope that you can merge this pull request so that other Browserify users can use this package more easily.