Make message post to Ajax

Change post message process to Ajax request.