Shim setImmediate for browsers