Updated telemetry.js to use new data format