JSHint validation improvements