finished conversion to browserify