While it is important, it is nowhere stated (or at least i couldn’t find it) that to use SceneManagement in JS scripts,
one should write import UnityEngine.SceneManagement in the start of the script.
Seems that lots of people are confused by the change and can’t get their code to work at first.
We’ve added this to the docs in various places. Should help others, I hope!