instead of a lib folder, start using a dist folder, and check it in.

this allows people to install directly from a git url instead of using
the npm version.

also update all the libraries being used.
formatting javascript