Fixed loading socket.io script from correct domain/port