update in js and html