Made it work with browserify