updated for the browserify