ajax post working, but not returning expected values