updated grader.js to support URL parameters