hornbook_api data structure updated

single char [{u_char: 0x1234}]
word: [{u_char: 0x1234}, {u_char: 0x3456}, ...]
refactor hornbook_api,js and api page
refactor study api and api page
refactor grading_test page and js
refactor study page and js