modified grader.js to support URL input