update text and js