changed GET param to delay and now return the delay in the json response