Updated grader.js to write to file for submission