Modified grader.js to handle URL