fixed invalid applying of clearTimeout to the window object (requires null)