jsPedigrees saving and loading state; saving grade