Structure of a JavaScript application

Refer to the following example for the structure of a JavaScript application.

<Global variable declarations;>
function <function name>(<parameters>)
{
	<local variable declarations;>
	<Statements;>
}
<function calls;>