Fix error in how the classlist is applied to become IE 10 safe.