do not refer to window when using setTimeout and clearTimeout