modified grader.js that can take outside urls as well