Revised grader.js (badly named garder.js)