updated javascript gradebook