made browserify-able