Using an application module function to initialize a page