Modify way to check existence of `setTimeout` function for old IEs

For example, `typeof setTimeout` is not "function" but "object"
in IE 8.