use browserify to generate client library