final grader.js code