diff --git a/static/scripts/jquery.event.drag.js.patch b/static/scripts/jquery.event.drag.js.patch
deleted file mode 100644
index 1c5178021e0..00000000000
--- a/static/scripts/jquery.event.drag.js.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-96c96
-< if ( drag.dragging ){
----
-> if ( drag.dragging ) {
-99c99,101
-< }
----
-> } else {
-> hijack( event, "dragclickonly", elem );
-> }
diff --git a/static/scripts/jqtouch.js b/static/scripts/libs/jquery/jqtouch.js
similarity index 100%
rename from static/scripts/jqtouch.js
rename to static/scripts/libs/jquery/jqtouch.js
diff --git a/static/scripts/jquery.autocomplete.js b/static/scripts/libs/jquery/jquery.autocomplete.js
similarity index 100%
rename from static/scripts/jquery.autocomplete.js
rename to static/scripts/libs/jquery/jquery.autocomplete.js
diff --git a/static/scripts/jquery.cookie.js b/static/scripts/libs/jquery/jquery.cookie.js
similarity index 100%
rename from static/scripts/jquery.cookie.js
rename to static/scripts/libs/jquery/jquery.cookie.js
diff --git a/static/scripts/jquery.dynatree.js b/static/scripts/libs/jquery/jquery.dynatree.js
similarity index 100%
rename from static/scripts/jquery.dynatree.js
rename to static/scripts/libs/jquery/jquery.dynatree.js
diff --git a/static/scripts/jquery.event.drag.js b/static/scripts/libs/jquery/jquery.event.drag.js
similarity index 100%
rename from static/scripts/jquery.event.drag.js
rename to static/scripts/libs/jquery/jquery.event.drag.js
diff --git a/static/scripts/jquery.event.drop.js b/static/scripts/libs/jquery/jquery.event.drop.js
similarity index 100%
rename from static/scripts/jquery.event.drop.js
rename to static/scripts/libs/jquery/jquery.event.drop.js
diff --git a/static/scripts/jquery.event.hover.js b/static/scripts/libs/jquery/jquery.event.hover.js
similarity index 100%
rename from static/scripts/jquery.event.hover.js
rename to static/scripts/libs/jquery/jquery.event.hover.js
diff --git a/static/scripts/jquery.form.js b/static/scripts/libs/jquery/jquery.form.js
similarity index 100%
rename from static/scripts/jquery.form.js
rename to static/scripts/libs/jquery/jquery.form.js
diff --git a/static/scripts/jquery.js b/static/scripts/libs/jquery/jquery.js
similarity index 100%
rename from static/scripts/jquery.js
rename to static/scripts/libs/jquery/jquery.js
diff --git a/static/scripts/jquery.mousewheel.js b/static/scripts/libs/jquery/jquery.mousewheel.js
similarity index 100%
rename from static/scripts/jquery.mousewheel.js
rename to static/scripts/libs/jquery/jquery.mousewheel.js
diff --git a/static/scripts/jquery.rating.js b/static/scripts/libs/jquery/jquery.rating.js
similarity index 100%
rename from static/scripts/jquery.rating.js
rename to static/scripts/libs/jquery/jquery.rating.js
diff --git a/static/scripts/jquery.tipsy.js b/static/scripts/libs/jquery/jquery.tipsy.js
similarity index 100%
rename from static/scripts/jquery.tipsy.js
rename to static/scripts/libs/jquery/jquery.tipsy.js
diff --git a/static/scripts/jquery.ui.sortable.slider.js b/static/scripts/libs/jquery/jquery.ui.sortable.slider.js
similarity index 100%
rename from static/scripts/jquery.ui.sortable.slider.js
rename to static/scripts/libs/jquery/jquery.ui.sortable.slider.js
diff --git a/static/scripts/jquery.wymeditor.js b/static/scripts/libs/jquery/jquery.wymeditor.js
similarity index 100%
rename from static/scripts/jquery.wymeditor.js
rename to static/scripts/libs/jquery/jquery.wymeditor.js
diff --git a/static/scripts/jstorage.js b/static/scripts/libs/jquery/jstorage.js
similarity index 100%
rename from static/scripts/jstorage.js
rename to static/scripts/libs/jquery/jstorage.js
diff --git a/static/scripts/packed/jqtouch.js b/static/scripts/packed/libs/jquery/jqtouch.js
similarity index 100%
rename from static/scripts/packed/jqtouch.js
rename to static/scripts/packed/libs/jquery/jqtouch.js
diff --git a/static/scripts/packed/jquery.autocomplete.js b/static/scripts/packed/libs/jquery/jquery.autocomplete.js
similarity index 100%
rename from static/scripts/packed/jquery.autocomplete.js
rename to static/scripts/packed/libs/jquery/jquery.autocomplete.js
diff --git a/static/scripts/packed/jquery.cookie.js b/static/scripts/packed/libs/jquery/jquery.cookie.js
similarity index 100%
rename from static/scripts/packed/jquery.cookie.js
rename to static/scripts/packed/libs/jquery/jquery.cookie.js
diff --git a/static/scripts/packed/jquery.dynatree.js b/static/scripts/packed/libs/jquery/jquery.dynatree.js
similarity index 100%
rename from static/scripts/packed/jquery.dynatree.js
rename to static/scripts/packed/libs/jquery/jquery.dynatree.js
diff --git a/static/scripts/packed/jquery.event.drag.js b/static/scripts/packed/libs/jquery/jquery.event.drag.js
similarity index 100%
rename from static/scripts/packed/jquery.event.drag.js
rename to static/scripts/packed/libs/jquery/jquery.event.drag.js
diff --git a/static/scripts/packed/jquery.event.drop.js b/static/scripts/packed/libs/jquery/jquery.event.drop.js
similarity index 100%
rename from static/scripts/packed/jquery.event.drop.js
rename to static/scripts/packed/libs/jquery/jquery.event.drop.js
diff --git a/static/scripts/packed/jquery.event.hover.js b/static/scripts/packed/libs/jquery/jquery.event.hover.js
similarity index 100%
rename from static/scripts/packed/jquery.event.hover.js
rename to static/scripts/packed/libs/jquery/jquery.event.hover.js
diff --git a/static/scripts/packed/jquery.form.js b/static/scripts/packed/libs/jquery/jquery.form.js
similarity index 100%
rename from static/scripts/packed/jquery.form.js
rename to static/scripts/packed/libs/jquery/jquery.form.js
diff --git a/static/scripts/packed/jquery.js b/static/scripts/packed/libs/jquery/jquery.js
similarity index 100%
rename from static/scripts/packed/jquery.js
rename to static/scripts/packed/libs/jquery/jquery.js
diff --git a/static/scripts/packed/jquery.mousewheel.js b/static/scripts/packed/libs/jquery/jquery.mousewheel.js
similarity index 100%
rename from static/scripts/packed/jquery.mousewheel.js
rename to static/scripts/packed/libs/jquery/jquery.mousewheel.js
diff --git a/static/scripts/packed/jquery.rating.js b/static/scripts/packed/libs/jquery/jquery.rating.js
similarity index 100%
rename from static/scripts/packed/jquery.rating.js
rename to static/scripts/packed/libs/jquery/jquery.rating.js
diff --git a/static/scripts/packed/jquery.tipsy.js b/static/scripts/packed/libs/jquery/jquery.tipsy.js
similarity index 100%
rename from static/scripts/packed/jquery.tipsy.js
rename to static/scripts/packed/libs/jquery/jquery.tipsy.js
diff --git a/static/scripts/packed/jquery.ui.sortable.slider.js b/static/scripts/packed/libs/jquery/jquery.ui.sortable.slider.js
similarity index 100%
rename from static/scripts/packed/jquery.ui.sortable.slider.js
rename to static/scripts/packed/libs/jquery/jquery.ui.sortable.slider.js
diff --git a/static/scripts/packed/jquery.wymeditor.js b/static/scripts/packed/libs/jquery/jquery.wymeditor.js
similarity index 100%
rename from static/scripts/packed/jquery.wymeditor.js
rename to static/scripts/packed/libs/jquery/jquery.wymeditor.js
diff --git a/static/scripts/packed/jstorage.js b/static/scripts/packed/libs/jquery/jstorage.js
similarity index 100%
rename from static/scripts/packed/jstorage.js
rename to static/scripts/packed/libs/jquery/jstorage.js
diff --git a/templates/admin/data_admin/data_form.mako b/templates/admin/data_admin/data_form.mako
index 1ed3e25f3c3..dde487ff86d 100644
--- a/templates/admin/data_admin/data_form.mako
+++ b/templates/admin/data_admin/data_form.mako
@@ -27,7 +27,7 @@
%def>
<%def name="javascripts()">
${parent.javascripts()}
- ${h.js("jquery.autocomplete", "autocomplete_tagging" )}
+ ${h.js("libs/jquery/jquery.autocomplete", "autocomplete_tagging" )}
%def>
##
## Override methods from base.mako and base_panels.mako
diff --git a/templates/admin/data_admin/generic_error.mako b/templates/admin/data_admin/generic_error.mako
index 2c70ed051df..fd46c54c927 100644
--- a/templates/admin/data_admin/generic_error.mako
+++ b/templates/admin/data_admin/generic_error.mako
@@ -27,7 +27,7 @@
%def>
<%def name="javascripts()">
${parent.javascripts()}
- ${h.js("jquery.autocomplete", "autocomplete_tagging" )}
+ ${h.js("libs/jquery/jquery.autocomplete", "autocomplete_tagging" )}
%def>
##
## Override methods from base.mako and base_panels.mako
diff --git a/templates/admin/data_admin/local_data.mako b/templates/admin/data_admin/local_data.mako
index 84f0f9e650c..256d9e47377 100644
--- a/templates/admin/data_admin/local_data.mako
+++ b/templates/admin/data_admin/local_data.mako
@@ -27,7 +27,7 @@
%def>
<%def name="javascripts()">
${parent.javascripts()}
- ${h.js("jquery.autocomplete", "autocomplete_tagging" )}
+ ${h.js("libs/jquery/jquery.autocomplete", "autocomplete_tagging" )}
%def>
##
## Override methods from base.mako and base_panels.mako
diff --git a/templates/admin/requests/select_datasets_to_transfer.mako b/templates/admin/requests/select_datasets_to_transfer.mako
index 991d9f76c1b..011636ed718 100644
--- a/templates/admin/requests/select_datasets_to_transfer.mako
+++ b/templates/admin/requests/select_datasets_to_transfer.mako
@@ -8,7 +8,7 @@
${common_javascripts()}
%def>
-${h.js( "ui.core", "jquery.cookie", "jquery.dynatree" )}
+${h.js( "ui.core", "libs/jquery/jquery.cookie", "libs/jquery/jquery.dynatree" )}
${h.css( "dynatree_skin/ui.dynatree" )}
##
- ${h.js( "jquery", "bootstrap", "galaxy.base", "libs/underscore", "libs/backbone/backbone", "libs/backbone/backbone-relational", "libs/handlebars.runtime", "mvc/ui" )}
+ ${h.js( "libs/jquery/jquery", "bootstrap", "galaxy.base", "libs/underscore", "libs/backbone/backbone", "libs/backbone/backbone-relational", "libs/handlebars.runtime", "mvc/ui" )}
-
+
+
-${h.js( "galaxy.base", "galaxy.panels", "json2", "jquery", "bootstrap", "jstorage", "jquery.event.drag", "jquery.event.hover","jquery.mousewheel", "jquery.autocomplete", "mvc/data", "viz/visualization", "viz/trackster", "viz/trackster_ui", "jquery.ui.sortable.slider", "farbtastic" )}
+${h.js( "galaxy.base", "galaxy.panels", "json2", "libs/jquery/jquery", "bootstrap", "libs/jquery/jstorage", "libs/jquery/jquery.event.drag", "libs/jquery/jquery.event.hover","libs/jquery/jquery.mousewheel", "libs/jquery/jquery.autocomplete", "mvc/data", "viz/visualization", "viz/trackster", "viz/trackster_ui", "libs/jquery/jquery.ui.sortable.slider", "farbtastic" )}
- ${h.js( "jquery",
+ ${h.js( "libs/jquery/jquery",
"bootstrap",
- "jquery.event.drag",
- "jquery.event.drop",
- "jquery.event.hover",
- "jquery.form",
+ "libs/jquery/jquery.event.drag",
+ "libs/jquery/jquery.event.drop",
+ "libs/jquery/jquery.event.hover",
+ "libs/jquery/jquery.form",
"json2",
- "jstorage",
+ "libs/jquery/jstorage",
"galaxy.base",
"galaxy.workflow_editor.canvas",
- "jquery.autocomplete",
+ "libs/jquery/jquery.autocomplete",
"autocomplete_tagging")}