Updating the grader.js file to include url handling.