Shim for older browsers that do not support DOMNode.classList.