Add settings for JSHint
Fix JSHint warnings