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...
also, its a bit annoying i have to change it to classic every time i restart construct or preview wont work