Replace JSLint with JSHint.

closes #2277
- Added ES6 linting to core/client/
- Fix typeof array comparison
Merge pull request #2278 from halfdan/jshint-es6

Replace JSLint with JSHint.