TypeError: Property 'setImmediate' of object #<Object> is not a function fix

fix for "TypeError: Property 'setImmediate' of object #<Object> is not a function" in browsers.