Refactor to formatGPSHTMLOutput()