fixed grader.js to work for either url or file