modified jsPlumb scripts to separate test methods.