Replace process.nextTick by setImmediate if supported
Merge pull request #37 from jbpros/setImmediate

Replace process.nextTick by setImmediate if supported