finished grader.js that takes URL