I got a gui built with html css js, I need to connect that gui to a server in cpp, I decided to use sockets to communicate. I have one js file that is in charge to communicate with the server and I want all of the page's js files to use the function in the communicator. Import wont work beacuse I'm not inside moudle(and when I tried to change it to moudle the html files couldnt see the functions in the js files(and on event listener doesnt work) so I cannot use it to onClick events. and require doesnt work beacuse it requires node js(which I tried but it couldnt see my other js files and got a problem with permissions in the browser). I would like to help me solve it. thank you very much!