Simple handler for ChildProcess.spawn of Node.js