Swiched setimmediate package to work on IE