Fix classList property detection for IE8

I might be going crazy, but it looks like the documentElement doesn't have a "hasOwnProperty" method in IE8.