Re-revised grader.js to take file and url input