browserify support

adds support for running metrics in the browser