support for url loading in grader.js. Bit of duplicated code