Code refactoring, relaxing JSHint options