move finding nodes and conectors, node and connector creation to jquery dom extension functions