Make compatible with webpack and browserify

Fixes #101