   removeClass(settingsButton, 'open')
          settingsOverlay.style.display = "none";
        } else {
          addClass(settingsButton, 'open')
          settingsOverlay.style.display = "block";
        }
        self.settingsOpen = !self.settingsOpen;
      }

      var qualityOptions = playerDiv.getElementsByClassName('player-settings-quality-option');
      for (var i = 0; i < qualityOptions.length; i++) {
        qualityOptions[i].onmousedown = function(e) {
          e.stopPropagation();
         