delete row from database using javascript