title: html audio player javascript loops inadvertently
body: <p>I'm using a javascript link located in <code>&lt;head&gt;</code> section of my WP site. It's very simple and works well, except when the player ends the last track - it starts to play the first track again.</p>
  
  <p>I tried to use <code>loop="false"</code> but it starts another bug, restarting the same last track. I'm not familiarized with coding javascript, but I think it should be possible to create a class, something like <code>class="last-song"</code> and play around with this.</p>
  
  <p>An example can be seen in <a href="https://fredericopeter.com.br/musicblog/files-vocal/smiths" rel="nofollow noreferrer">here</a>, where the HTML can be checked:</p>
  
  <p>The javascript can be found <a href="https://fredericopeter.com.br/musicblog/js/audioPlayer.js" rel="nofollow noreferrer">here</a></p>
  
  <p>I would be very grateful if somebody could get some help.</p>