Update chat.js

Disconnecting Clients and Updating other clients (online users)