sending strings from HTML to the UI using javascript