completed js controller for spaced rep study
impliment spaced_rep card_ids order