code: function(numSt, numCov, numBranch, numCovBr, moduleName) {
  
          var totalPercent = percentage(numCov, numSt);
          var statusClass = totalPercent < successRate ? "bl-error" : "bl-success";
          var rowTitle = ( moduleName ? "Total for module: " + moduleName : "Global total" );
          var totalsOutput = grandTotalTemplate.replace("{{rowTitle}}", rowTitle)
              .replace("{{percentage}}", totalPercent)
              .replace("{{numberCovered}}", numCov)
              .replace("{{totalSmts}}", numSt)
              .replace("{{passedBranches}}", numCovBr)
              .replace("{{totalBranches}}", numBranch)
              .replace("{{statusclass}}", statusClass);
  
          bodyContent += totalsOutput;
      }
docs: create temporary function for use by the global totals reporter, as well as the per-module totals reporter