upgraded grader.js to check for urls