Toggle function returns incorrect value

On Chrome, `elem.classList.toggle('someClass')` returns true if the class was added. Whereas this shim seems to return true if the class was removed.