I am building a custom jQuery plugin for a project I am working on. I want to return an object that is custom to another jQuery plugin...rather than having to make sure that
Sure - you can create a new script element and append it to the head.
var script = document.createElement('script');
script.src = 'url-to-plugin';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
If this doesn't work, maybe try the method on this page, it's a slightly different approach using setAttribute.