socket.io client script