Progress with logic to update data js