add cytoscape extension hook (alt to jquery) for plugin