Simplify ajax waits