update js and html