Added isAjax function.