Make chat form submission an ajax call