use js to fill some html, fix bugs, add updateFlag