added url handling to grader.js