dependency injection at run time in jquery plugin

dependency injection at run time in jquery plugin

Hi,
I have written a jQuery based from validation. Almost all of the general purpose validation requirements and other things are implemented inside plugin. I'm using this plugin in an environment where form template and data are fetched from server, compiled and passed to this plugin. Here is the syntax:
  1. $(form).myFormValidator({
  2.    formTemplate: formTemplate,
  3.    formData    : formData
  4. });

Now let's say a particular form is having a special requirement, for example an input's change event function or may be some thing like that but specific to a particular form. This additional requirements are written in a java script file.

How do I insert this additional dependency at run time in my plugin so that function written inside javascript file become part of plugin's scope and both can access each other? In another words adding those extra requirements at run time inside jQuery plugin. I can get either of one thing from server apart of template and data:

1. Path of that java script file

2.  java script as string

So how do I do it?

Cheers