A (more) sane re-write of the Garmin Device Connect JS library.