Add JSHint settings
Fix JSHint errors