Add JSHint configuration
Fix JSHint issues