Update js with textbox