make compatible w/ browserify