Enable JS strict mode
Fixes #285
Fix the remaining JSHint warnings.

Also enable a few more JSHint checks.
Run `grunt`.