Use .classList when available and applicable