fix id update for inline javascript of cloned elements