Update grader.js

fs.writeFile(__dirname + '/file.txt', result, function(err) {
  if (err) throw err;
  console.log('It\'s saved!');
});