Try to cache the accordion widget.
Change the name of the function.