updating js and html