Port `addClass` and `removeClass` methods from core to remove reliance on `classList` API