updated grader.js to fix some bugs to deal with URLs