Update chatServer.js

Syntax Changes and Additional Comments