Adding JSHint to project

Adds JS Hint to the project and fixes initial errors that were reported.  Fixes #74.