Apply JSHint to test files.

closes #2666
- Add new jshint:test task
- Fix jshint errors