Fixed an issue with IE8 not supporting HTMLElement.prototype.classList