ajax post finally working and appending