Remove trailing whitespace
Use === comparisons
Fix linter warnings
Add JSHint configuration