update data-average and datarate on click

plus exemple page