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.
Merge pull request #16 from brian-c/patch-1

Fix classList property detection for IE8