use js to update page'