Added URL handling to grader.js