I have a JavaScript file in which I need to create an instance of a javascript class found in a different js file. Is there any way I can just "include" or "require" the file in which the Class is found? I read about using Ajax or creating a separate function to load the file, is there a more simple way?
I read here How do I include a JavaScript file in another JavaScript file? but I'm looking for something simple, as the project is too small, if I use any of these, the code for including the file will be longer than the actual code needed.