metrics.json has been updated with new json format and index.js has been updated to work correctly with it