Global functions automatically become window methods. Invocing myFunction() is the same as invocong window.myFunction().