update HTML and JS to make everything work again in RO mode