Introduce wait_for_ajax