Update grade.js

average weights and seven with weights now give grades not string