Wikispaces already uses jQuery for managing complex interactions. Widgeds can easily be added to any page content using Widget > Other Widget > and then copy and paste the html given on the pages for the different widgeds (see under widgeds in the navigation menu on the left).

widged_wikispaces.png

:TODO: provide tutorial.