Move function to StatisticsBar.prototype