Added .closest() method to core.