revised grader.js to take a url