readability improvement of nested setTimeouts.