connecting endpoints with jsplumb edges