text: Template.registerHelper('debug', function (optionalValue) {
    if (typeof console !== "undefined" || typeof console.log !== "undefined") {
      console.log("Current Context");
      console.log("====================");
      console.log(this);
      if (optionalValue) {
        console.log("Value");
        console.log("====================");
        console.log(optionalValue);
      }
  
      return '';
    }
  
    // For IE8
    alert(this);
  
    if (optionalValue) {
      alert(optionalValue);
    }
  
    return '';
  });
  
  Template.registerHelper('formatDate', function(newDate, updatedDate) {
    if ( newDate > updatedDate) {
      return moment(newDate).fromNow();
    } else {
      return moment(updatedDate).fromNow();
    }
  });
  