`this` is not guaranteed to be the root scope

Better to be explicit and use `window`.