Added test script

We had a JSHint setup but it was not being enforced. In this PR:

- Added `test` script to run JSHint against `app/` (recurses all files) and any `.js` file in root
- Fixed up JSHint errors