Server chat code done and started on the client side js