upgraded grader.js