Adding Static Application JavaScript File
Use a Static Application File shared component to include files of any kind with your app.
From the Shared Components > Static Application Files page in the App Builder, add a file named app.js to include application-wide helper functions.
Tip: The suggested file name app.js can be any name you like, but keep the .js extension.