Updated flashcard.js