improve browserify compatiblity