Browserify 5

Closes #39.

This also includes a commit from #46 since that doesn't work in this latest version of browserify, but I wanted to have a separate PR for that for discussion.