Browserify build

ver preliminary conversion to browserify I did on the plane after I finished my book.  Currently tests haven't been touched, probably doesn't work, etc.