The purpose of that is to wait for all other scripts and the DOM to load before doing stuff such as binding events to elements in the DOM (such as that form), because if the elements you are binding to are not loaded at the time the binding executes, nothing will happen instead.