Global functions automatically become window methods. Invoking myFunction() is the same as invoking window.myFunction().