.js doesn't work in html Live server

Iam new to nvim and I don’t know how to solve this problem:

In my init.vim Ive installed all the javascript plugins.

There are two files in my WWW folder (.html, .js file).

If I run an javascript in the index.html file, it SHOWS the script on my web page. But if I separe Javascript into an .js file and link the .js file in my .html, the script doesn’t work. I use live-server in nvim.

When I open the same WWW folder in VSCode, .js file works without any problem.
SCRIPT doesn’t work in live server

Thank you for your advices.