Switch to toggleClass IE10 implementation to classList.toggle.