fixed wrong socket.io port being set in js