1) add function getExample to flashcard.js
2) handle error exception for request response that has zero value []