grader.js modified to accept url or file