grader.js for both file and url