upgraded grader.js to accept url