fixed non json ajax response causing error