Optimizations
Set all != and == to !== and ===
Made the ajax request to get the grades non async