Fix/browserify

this makes it work with browserify, since browserify puts a wrapper around it