clean up jsplumb impl