function capitalize(txt) {
    return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
  }
Provides metrics for time to first image, CSS and JS file

setMetric('timeToFirstCss')   @desc time it took to receive the last byte of the first CSS @offenders
setMetric('timeToFirstJs')    @desc time it took to receive the last byte of the first JS @offenders
setMetric('timeToFirstImage') @desc time it took to receive the last byte of the first image @offenders