metrics main.js file