js to html update