added completion messages to ajax for debugging