javascript flashcard