revised grader.js