writing nodeRun.js