Update latency.js

The operation according to the argv 
[c] The syntax of the function run [i] has the same name as the function being executed in syntax errors and modifications.