Accessing `$(d.click_target)` twice can probably be optimized with a var.