diff --git a/lms/templates/courseware.html b/lms/templates/courseware.html
index 29178374fe..f6133860f4 100644
--- a/lms/templates/courseware.html
+++ b/lms/templates/courseware.html
@@ -3,7 +3,7 @@
<%block name="bodyclass">courseware%block>
<%block name="title">
Courseware – MITx 6.002x%block>
-<%block name="headextra">
+<%block name="js_extra">
@@ -27,9 +27,7 @@
<%static:js group='courseware'/>
<%include file="mathjax_include.html" />
-%block>
-<%block name="js_extra">
+%block>
+
-
-
diff --git a/lms/templates/gradebook.html b/lms/templates/gradebook.html
index 12f820c8c9..7c2908dc77 100644
--- a/lms/templates/gradebook.html
+++ b/lms/templates/gradebook.html
@@ -1,10 +1,13 @@
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
-<%block name="headextra">
+<%block name="js_extra">
+%block>
+
+<%block name="headextra">