I have a "Main.js" script a "index.html" file and a "render.js" script, in the index.html file I specified that his controller script would be "render.js" and everything works, I can access the HTML file from the "render.js" file, the problem is that when I require the "render.js" script from the "Main.js" script to use methods that I defined in "render.js", "I get document is not defined" from the "render.js" script.
any help with that?