Generate new data-montage-ids using the same base id

When adding new DOM nodes to a template solve the data-montage-id
clashes by generating a new id based on the original id.