title: How to convert total time into minutes for custom audio player?
body: <p>I currently have a well working audio player that shows the current time over total time.</p>
  
  <pre><code>&lt;audio id="audioPlayer" 
      preload="true" 
      ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration);"&gt;
      &lt;source src="oh-my.mp3"&gt;      
  &lt;/audio&gt;
  
  
  &lt;div id="wrapper"&gt;
      &lt;!--Audio Player Interface--&gt;
      &lt;div id="audioplayer"&gt;
          &lt;button id="pButton" class="play" onclick="document.getElementById('audioplayer').play();"&gt;&lt;/button&gt;
          &lt;div id="timeline"&gt;
              &lt;div class="progress" id="progress"&gt;&lt;/div&gt;
              &lt;div id="playhead"&gt;&lt;/div&gt;
          &lt;span id="tracktime"&gt;0 / 0&lt;/span&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  </code></pre>
  
  <p>Although the issue is that it is shown in seconds and not minutes for example: 222 / 342. I am wondering how to convert the current time and total time into minutes, I assume suing something with math.Floor. 
  Link to my <a href="https://jsfiddle.net/tunechest000/1cgs9ewy/5/" rel="nofollow noreferrer">fiddle.</a></p>