Client.js & server.js bug fixing.