Update markup string in js.