Alright, I have looked on this site and have found several different answers, none of which have worked for me. Basically had a js file that had many functions in it along
Using JS modules in the browser On the web, you can tell browsers to treat a element as a module by setting the type attribute to module.
More on https://developers.google.com/web/fundamentals/primers/modules