added chat box functionality to the client webpage