Fixed grades-update php, fixed compute-grade js