update to match browserify syntax