- refactoring Element.prototype.closest