The main application code now passes JSHint and JSLint.
Merge pull request #39 from ograycode/master

Formatted application code to follow JSLint