Adding sitewide JS file in module
You can add the file to a theme's or module's .info file using scripts[]:

scripts[] = js/my-script.js


The path should be relative to your module root.

See also Writing theme .info files and Writing module .info files.