update js to html