diff --git a/core/admin.py b/core/admin.py
index 0c8b605c2..6e9d0586b 100644
--- a/core/admin.py
+++ b/core/admin.py
@@ -16,7 +16,7 @@ class TroggleModelAdmin(admin.ModelAdmin):
obj.save()
class Media:
- js = ('js/jquery.js','js/QM_helper.js')
+ js = ('jquery/jquery.min.js','js/QM_helper.js')
class RoleInline(admin.TabularInline):
model = SurvexPersonRole
diff --git a/localsettingsserver.py b/localsettingsserver.py
index 0ac8fed24..61f52522a 100644
--- a/localsettingsserver.py
+++ b/localsettingsserver.py
@@ -42,7 +42,7 @@ MEDIA_URL = URL_ROOT + DIR_ROOT + 'site_media/'
MEDIA_ROOT = REPOS_ROOT_PATH + '/troggle/media/'
MEDIA_ADMIN_DIR = '/usr/lib/python2.7/site-packages/django/contrib/admin/media/'
-JSLIB_PATH = /usr/share/javascript/
+JSLIB_URL = "URL_ROOT + javascript/"
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + 'tinymce_media/'
diff --git a/templates/base.html b/templates/base.html
index fda361767..63724ee72 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -6,7 +6,7 @@
{% block title %}Troggle{% endblock %}
-
+
diff --git a/templates/cavebase.html b/templates/cavebase.html
index b3505a7e7..4b7c3b95a 100644
--- a/templates/cavebase.html
+++ b/templates/cavebase.html
@@ -5,9 +5,9 @@
{% block title %}{{ cave.official_name|safe }}{% endblock %}
-
-
-
+
+
+
+
+
{{ tripForm.media }}
diff --git a/templates/editcave2.html b/templates/editcave2.html
index edac202d4..85df6e746 100644
--- a/templates/editcave2.html
+++ b/templates/editcave2.html
@@ -3,8 +3,8 @@
{% block title %}Edit Cave{% endblock %}
{% block extraheaders %}
-
-
+
+
{% endblock %}
diff --git a/templates/editentrance.html b/templates/editentrance.html
index e772a118c..250bfb0e0 100644
--- a/templates/editentrance.html
+++ b/templates/editentrance.html
@@ -3,8 +3,8 @@
{% block title %}Edit Entrance{% endblock %}
{% block extraheaders %}
-
-
+
+
{% endblock %}
diff --git a/templates/editfile.html b/templates/editfile.html
index b9ae11524..c420654e7 100644
--- a/templates/editfile.html
+++ b/templates/editfile.html
@@ -20,8 +20,9 @@
});
-
-
+
+
+
{{ fileForm.media }}
diff --git a/templates/newlogbookentry.html b/templates/newlogbookentry.html
index 36e85912f..a5ac38709 100644
--- a/templates/newlogbookentry.html
+++ b/templates/newlogbookentry.html
@@ -17,8 +17,8 @@
});
-
-
+
+
{{ tripForm.media }}
diff --git a/templates/svxfile.html b/templates/svxfile.html
index bf9f1c3b6..fbaacdd28 100644
--- a/templates/svxfile.html
+++ b/templates/svxfile.html
@@ -5,8 +5,8 @@
{% block head %}
-
-
+
+