improved animations in flashcard.js  -FMD