Customize in what way? Perhaps you have an example.
// item is an object containing all properties of the clicked item. You would have to create your own function that returns a link.
return 'something.php?' + item.path;
Another option would be to allow custom links in the context menu, but that would require the same approach as above, and more properties to assign icons and text to the custom link.
For now, sorry no.