Updated grader.js to accept a URL or a file