updated grade.js