extract out chinese_flashcard_viewer.js