Replace last process.nextTick with setImmediate

Fixes #28
Merge pull request #31 from bitwiseman/master

Replace last process.nextTick with setImmediate