Replace _.defer with setImmediate polyfill (faster)