updated JS for upload, changed structure of Grades in DB
hopefully fixed remaining problems