Correct grader.js bugs & add checks in checks.json