More MyGPS js debugging. Very much a work in progress