Fully working grader.js