using socket.io the all js class