I fixed Zygmunt Molotch's issue, hopefully you don't mind the contribution :)
in desktop_panels.xml, travelmanager.distancetraveled and travelmanager.destination should have the following added to their onUpdate function:
Then, remove the onInit and onClose functions from travelmanager.distanceremaining.Code:window.distanceremaining.calculateDistanceRemaining()