add updated version with browserify require calls