transfer some methods over to jsplumb from current library