shim setImmediate on Node < 0.9