Attempt to have wait_for(page) use the state of jquerys ready promise.