add debug into ajax