fix horbook_api.js and flashcard.js