HTML5 / Javascript flashcards game