Setup saving javascript latencies to database
Added code for JS latency graph