urn;

        document.getElementById("current-rate").textContent = `${(
          stats.current || 0
        ).toFixed(1)} BPM`;
        document.getElementById("average-rate").textContent = `${(
          stats.average || 0
        ).toFixed(1)} BPM`;
        document.getElementById("min-rate").textContent = `${(
          stats.min || 0
        ).toFixed(1)} BPM`;
        document.getElementById("max-rate").textContent = `${(
          stats.max || 0
        ).toFixed(1)} BPM`;
      }

      function up