I would try a different computer, to see if the issue is hardware or OS related. Also try removing that large JS file from the project, just to test.
Develop games in your browser. Powerful, performant & highly capable.