ajax delete working, ajax post failing