In a few words, I'm renewing a big set of forms. They have some parts that are similar, but all the javascript actions used in the "common parts" have to be defined individualy for each form. It causes problems when it comes to update some action as we have to repeat the changes in each individual form.
What I'm trying to do is to extract the actions out of the form, as some kind of webservice called by a plugin.