Initial revision of grader.js and checks.js