It's passed as an argument when loading as a module. Otherwise it's fetched from the window scope and then will be added to the window scope itself, and function as it did originally.