Fix JSHint warnings.
Enable JS strict mode
Fixes #285
Run `grunt`.
Enable `curly` rule.
Run `grunt`.
Enable `forin` and `freeze` rules.
Enable `latedef`.
Enable `nonew`.
Run `grunt`.