Update flashcardActions.js