using browserify client side