Every file, written to run over a web browser is a child of window object, so we can implement that with or without window ad that is why all window properties are accessible globally.