Modified grader.js to check url and added more checks