make compatible with latest browserify