Modified grader.js to accept URLs