saves chat history in browser