Grunt: Add JSHint support.
Fix JSHint warnings.
Enable JS strict mode
Fixes #285
Run `grunt`.
Enable `curly` rule.
Enable `forin` and `freeze` rules.
Enable `latedef`.
Enable `newcap` and remove `laxbreak` and `validthis`.
Run `grunt`.