Add setImmediate shim for browser