modified grader.js to support URLs