Updated grader.js to take file or url input