code: function getTabOffsets(elements) {
      var i, tab, currentOffset = 0, offsets = [];
  
      for (i = 0; i < elements.tabs.length; i++) {
        tab = elements.tabs[i];
        offsets.push(currentOffset);
        currentOffset += tab.offsetWidth;
      }
  
      return offsets;
    }
docs: Returns the offsets of all of the tabs based on their widths.
  
  @param elements
  @returns {number[]}