Made js latencies update in realtime and moved helpers into helper module