Revised grader.js to work with URLs