mostly fixed jsPlumb but it still acts strangely