You're right. This doesn't really work at all! If was my dirty hack to get things cooking again in the slide deck.
We need something more robust and complete: https://github.com/remy/polyfills/blob/master/classList.js