text: function sec2time(timeInSeconds) {
      var pad = function(num, size) { return ('000' + num).slice(size * -1); },
      minutes = Math.floor(timeInSeconds / 60) % 60,
      seconds = Math.floor(timeInSeconds - minutes * 60);
  
      return minutes + ':' + pad(seconds, 2);
  }
  
  // Copied from AMQ's js
  // Translates type to the correct output
  function convertSongTypeToText(type, typeNumber) {
      switch (type) {
  		case 1: return "Opening " + typeNumber;
  		case 2: return "Ending " + typeNumber;
  		case 3: return "Insert Song";
  	}
  }
  
  // Get the average score of every player in the game
  function GetAverageScore() {
      var players = document.querySelectorAll('.qpAvatarContainerOuter');
      var totalScore = 0;
      if (players && answerInformation[0]) {
          for (var j = 0; j < players.length; j++) {
              totalScore += answerInformation[j].playerScore;
          }
  
           //use round * 10  / 10 to get 1 decimal point
          return Math.round(totalScore/players.length * 10) / 10
      }
  
      return 0;
  }
  
  // Get the person at the place inputted
  function GetScoreOfPlace(place) {
      if (playerScores.length > place) {
          playerScores.sort(function(a, b){return b-a});
          return playerScores[place - 1];
      }
  
      return 'n/a';
  }
  
  // Tell if the round is over
  function IfRoundIsOver() {
      let currentSongCount = parseInt(document.querySelector('#qpCurrentSongCount').innerText);
      let totalSongCount = parseInt(document.querySelector('#qpTotalSongCount').innerText);
      return currentSongCount === totalSongCount;
  }
  