Updated grader.js
added write to output.json