changed socket.io connect to work on server