It would be better to take the elements in as arguments. This will make it more configurable to change which elements are focused, and should remove the need to pass in the entire "that" object.