eButton = playerDiv.getElementsByClassName('player-mute-button')[0];
  if (muteButton) {
    removeClass(muteButton, "muted");
    removeClass(muteButton, "low");
    if (player.muted) {
      addClass(muteButton, "muted");
    } else if (player.volume < .5) {
      addClass(muteButton, "low");
    }
  }
  var volumeBar = playerDiv.getElementsByClassName('player-volume-value')[0];
  if (volumeBar) {
    var volume = (player.volume * 80).toFixed();
    if (player.muted) {
      volume = 0;
    }
    volumeBa