Well that's what you get when the "solution" is to embed a webserver, a browser, a native executable to show that browser, and the server runs Node...
The solution is simple, stop shoving square pegs in round holes, and learn an appropriate language rather than shoehorn JS everywhere.