adds url handling code for grader.js