updated grader.js to deal with URLs