Modified grader.js to check either a file or an URL