revised grader.js with url checking capabilities