finally got a working version of grader.js