Added ajax responses to console log for error checking.