getPlayerVars(element) {
    const vars = {
      modestbranding: 1,
      rel: 0,
      origin: window.location.origin
    };

    if (this.slide.classList.contains('fullscreen')) {
      // Disabling keyboard interaction for fullscreenvideos
      vars.disablekb = 1;
    }

    if (typeof element.dataset.noControls !== 'undefined') {
      vars.controls = 0;
      vars.showinfo = 0;
    }

    if (typeof element.dataset.loop !== 'undefined') {
      vars.loop = 1;
      vars.playlist = element.dataset.youtubeId;
    }

    return vars;
  }
Parses the element to have the proper variables.
@param {Element} element
@return {Object} Player variables.