minor fixes and updates to javascript for overriding narrGrade