old_contents: Template._stats.helpers({
  
    statistics: function(){
      var user = Session.get("userObject");
  
      var completedBets = Bets.find({ status: "completed" }).count();
  
      var wins = Bets.find({ winner: user}).count();
  
      var losses = completedBets - wins;
  
      return [wins, losses]
    }
  
  });
  
new_contents: Template._stats.helpers({
    statistics: function(){
      var user = Session.get('userObject'),
          completedBets = Bets.find({ status: 'completed' }).count(),
          wins = Bets.find({ winner: user }).count(),
          losses = completedBets - wins;
  
      return [wins, losses]
    }
  });
  
subject: Clean up variable class inside statistics _stats helper.