Update grader.js to support URL input