Some documentation for client.js.
Added a package.json file, and some more documentation.