Bug 25010: change timeouts to setTimeouts