move matchesSelector to polyfill