williamcotton, if you are doing something very simple, just put your response writing code in setTimeout