debugged grader.js