updated grader.js to fix async issue