MDL-66958 core_grade: Add comparison js for grade saves