Run a Three.js example locally on my computer?

I’m new to Three.js and learning this amazing library.

I’m trying to run an Example from the Three.js website (https://threejs.org/examples/#webgl_geometry_hierarchy2) locally on my computer, without using modules. I instead have the .js files I need saved locally to my project folder (module.js, stats.js, three.js, and orbitcontrols.js), but it is not working.

The errors I’m getting on my Firefox browser are:

image

Please share you whole project as a git repo since it’s not obvious what’s going wrong. You say use use three.js and stats.js but the errors show clearly the usage of the ES6 module versions.