Update documentation; polish Javascript structure.

Adds comments to the major portions of the codebase.
Updates the README to give useful information.
Refactors the Javascript file for the Palindrome view to be more in-line with best practices.