make an extractStat(stats, name) and a computeE2EDelay function, so that this function can basically become
rtt = extractStat(stats, 'googRtt');
var captureStart = extractStat(stats, 'blah');
e2eDelay = computeE2EDelay(captureStart, remoteVideo.currentTime);