Add methods waitForAjax & isAjaxInProgress