Added extra checks
Updated grader.js to use url as well as files