Updated grader.js to handle URLs