updated grader.js to take either url or a file