made browserify work and added example