Add browser shim for global setImmediate()