Many times, you will want some functions to run automatically when the page loads. This example shows the activation of the constructor scripts for 2 Accordion widgets on the same page. We’ve also moved the JavaScript functions to an external file so that the script is unobtrusive.