Add JSHint and become compliant