transitioning flashcard game into jquery and html5