Refactor grader.js to make checkHtml the cornerstone function.