Start flash card

refactored flashcard.js