Use promise to change default ajax response behavior when entering 2nd operators