refactor grader.js to permit url checking