Fix setImmediate for IE8-9