Fixed idiot issue

Switched ternary outcomes so that they're actually correct and don't bork browsers without classlist support.