lementById("copyembed")
  if (copyEmbedButton) {
    copyEmbedButton.addEventListener("click", function() {
      self.copyEmbedCodeToClipboard();
      closeContextMenu();
    })
  }

  var speedButtons = document.getElementsByClassName('speed-button');
  for (var i = 0; i < speedButtons.length; i++) {
    var speedButton = speedButtons[i];
    speedButton.addEventListener("click", function(e) {
      var speed = parseFloat(e.target.getAttribute("data-speed"))
      player.playbackRate = speed
      for (v