updated grader.js based on HW3