This is the code for the web based chat application