When Construct's Javascript coding feature was launched in 2019, all the scripts in a project ran as classic mode scripts. This is how Javascript has run in web...
It is really amazing what is happening with C3, with the option to use modules, everything will be well organized.