Refactored grader.js for check urls 1