some simple flashcard javascripts