Added code to fix js latency graph