use setimmediate polyfill instead