Fix class removal for IE8+

I haven't tested this, but I'm assuming global `className` is a mistake.