grader.js now produces the required output and works with urls