minor edits to ajax post