Tweak JSHint settings.
Fix various JSHint issues.