I'm still often confused by scope in JS. I had to pass a reference to the app object into this private function in order to access `waitForElement` and `client`. I'm not sure if this is good practice or if there is a better way to make this work.