Modified grader.js to grade files or urls