Improve JSHint settings and fix all issues