setImmediate polyfill