Refactored socket.io-server.js
- Pulled out updateClients() function