move utility method to util.js

getLastWeek and getLastMonth
update learning UI logic

update study history once all study done
auto switch to recap mode

after all revise done
use txtAllStudy_ to display all studyList_