Working on exit code in Node script