updated grader.js to handle url