how to edit data in html table using javascript