updated grader.js to take file or URL