Modified grader.js to include checks for URLs