I guess you could include the file in the theme's js folder and then require it in the theme's .js file.
Alternatively you could just include it directly in the HTML. How you do this depends on whether you're using contrib-spoor or not. If you are, you need to modify index, main and index_lms.html in that extension's required folder. If you're not using spoor, just modify src/index.html