Added more checks and URL checking within grader.js