Implement javascript web endpoint average timing method

Signed-off-by: OwenPatey <owen_patey@hotmail.com>