Use JSHint
Fix JSHint warnings