renderColor = function (totalErrors, totalWarnings) {
  if (totalErrors !== 0) {
    return 2;
  }
  else if (totalWarnings !== 0) {
    return 1;
  }
  return 0;
}
Get the color based on whether there are errors/warnings...
@param {string} totalErrors Total errors
@param {string} totalWarnings Total warnings
@returns {int} The color code (0 = green, 1 = yellow, 2 = red)