chatbot with swr and jqueryui