Added IE 10 support

I use Polymer in my project, but there was a problem, that it was not working on IE 10. I figured out that window.HTMLDocument is not available in IE 10, there is window.Document object instead. 

After this change everything is working.