Improved code to github grapher task
Use setImmediate instead of process.nextTick