grade.js updated