Using jsPlumb functions