Custom extension for Cytoscape.js