a really stupid setImmediate polyfill