Complete grader.js implementtation