Removing hardcoded localhost from socket.io on client code