make it work with browserify