There is a clone function. But it does not make a deep copy. How can I make a deep copy of a cytoscape.js collection