diff --git a/TwistyPlugin/data/System/TwistyPlugin.txt b/TwistyPlugin/data/System/TwistyPlugin.txt
index 122e752e43..128a79c32c 100644
--- a/TwistyPlugin/data/System/TwistyPlugin.txt
+++ b/TwistyPlugin/data/System/TwistyPlugin.txt
@@ -488,6 +488,7 @@ You can override some default settings in the plugin by setting the following [[
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | |
+| 18 Sep 2012 | 1.6.16 Foswikitask:Item11983: fixed script being added to the wrong zone |
| 05 Dec 2011 | 1.6.15 Released with Foswiki 1.1.4 - minor changes |
| 07 Jul 2011 | 1.6.14 Foswikitask:Item10946: fixed requesting of defunct/missing jquery.twisty.css |
| 02 Jun 2011 | 1.6.13 Foswikitask:Item10827: clear pref completely when using =remember="off"=. Effective from Foswiki 1.1.4 and higher. |
diff --git a/TwistyPlugin/lib/Foswiki/Plugins/TwistyPlugin.pm b/TwistyPlugin/lib/Foswiki/Plugins/TwistyPlugin.pm
index 25d636d7ef..5e7743b096 100644
--- a/TwistyPlugin/lib/Foswiki/Plugins/TwistyPlugin.pm
+++ b/TwistyPlugin/lib/Foswiki/Plugins/TwistyPlugin.pm
@@ -19,7 +19,7 @@ use vars qw( @twistystack $doneHeader $doneDefaults $twistyCount
our $VERSION = '$Rev$';
-our $RELEASE = '1.6.15';
+our $RELEASE = '1.6.16';
our $SHORTDESCRIPTION =
'Twisty section Javascript library to open/close content dynamically';
our $NO_PREFS_IN_TOPIC = 1;
@@ -68,8 +68,9 @@ sub _exportAnimationSpeed {
# add TWISTYANIMATIONSPEED to the html head so
# that it may be used in the client JS with
# foswiki.getPreference('TWISTYANIMATIONSPEED')
- Foswiki::Func::addToZone( "head", "TWISTYPLUGIN::META", <<"HERE");
-
+ Foswiki::Func::addToZone( "script", "TWISTYPLUGIN::META",
+ <<"HERE", "JQUERYPLUGIN::FOSWIKI::PREFERENCES" );
+
HERE
return;