modified grader.js to handle url