Global scope function example from the mozilla developer network. Learning JS.