Update metrics.js