Fixed setImmediate functionality on IE >= 10