made it actually work with browserify