Added comments to the jsPlumb functions in custom.js