Final working version of grader.js