Modify grader.js to handle URL