Updated grader.js to process URLs