Small refactor to the matches selector

This way we keep `docEl` and `matches` as scoped variables since they are not needed elsewhere.
Also renamed `matches` to `nativeMatchesSelector` to better follow the comment.