Updated grader.js to parse URL