fixed Chat.fectch func and added reference in html file