refactoring: dom.ancestor to jQuery closest