Document the JavaScript.
Merge pull request #33 from Tanner/js-doc

Document the JavaScript.