grader.js is updated to check file or URL