update server.js and client.js