Overhaul Javascript documentation.
Merge pull request #23 from ericandrewlewis/master

Overhaul Javascript documentation.