Element.prototype.matches polyfill