Fixed relative references and port socket.io client connects to