Adds closest() DOM method.