added browserify and cleaned up