Modify grader.js to work with URLs