added revised version of grader.js