Hooking Node.js stdout