fix override of var waitForAjax