Updated grader.js to handle URL