fixed browserify build and added example