Updated grader.js to write the output to a text file