updtd grader.js for handling url