updated socket.io and connect to make this code work