Using methods of an object the code generates a table header based on the data columns:
generateStatsTableHeader: function () { if (!this.statsTable)