I've been working on a Drafts script over the last few days, and needed to add a pretty large object to it - a few hunded lines. I wanted to store it in an external draft, so the main script would remain readable. Turns out it's as simple as adding this to the script:
var uuid = 'Enter the UUID of the draft here';
var d = Draft.find(uuid);
this.eval(d.content);
You can store anything you like in that external draft - objects, functions, whatever.