code: function splitVAST(ads) {
    var splittedVAST = [];
    var lastAdPod = null;
  
    ads.forEach(function (ad, i) {
      if (ad.sequence) {
        ad.sequence = parseInt(ad.sequence, 10);
      }
      // The current Ad may be the next Ad of an AdPod
      if (ad.sequence > 1) {
        var lastAd = ads[i - 1];
        // check if the current Ad is exactly the next one in the AdPod
        if (lastAd && lastAd.sequence === ad.sequence - 1) {
          lastAdPod && lastAdPod.push(ad);
          return;
        }
        // If the ad had a sequence attribute but it was not part of a correctly formed
        // AdPod, let's remove the sequence attribute
        delete ad.sequence;
      }
  
      lastAdPod = [ad];
      splittedVAST.push(lastAdPod);
    });
  
    return splittedVAST;
  }
docs: Splits an Array of ads into an Array of Arrays of ads.
  Each subarray contains either one ad or multiple ads (an AdPod)
  @param  {Array} ads - An Array of ads to split
  @return {Array}