I ended creating 4 action handler scripts for an application. All of these scripts use the same update code at the end of them. I would like to turn this code into a function and share it between the files so if I am updating things in the future I don't need to update all four files and maybe miss one.
If I do create this function, say in another JavaScript query, is there a way I can reference it in the four JavaScript queries?