grade.js: submitted version