Working on refactoring cytoscape js.