finish grader.js to read from a file or from url