- ${render_content(content)}
+
${render_content(content)}
% if content.get('children') is not None:
${render_comments(content['children'])}
% endif
diff --git a/lms/templates/discussion/_js_body_dependencies.html b/lms/templates/discussion/_js_body_dependencies.html
new file mode 100644
index 0000000000..86265c7cb4
--- /dev/null
+++ b/lms/templates/discussion/_js_body_dependencies.html
@@ -0,0 +1,4 @@
+<%! from django_comment_client.helpers import include_mustache_templates %>
+
+<%include file="/mathjax_include.html" />
+${include_mustache_templates()}
diff --git a/lms/templates/discussion/_js_dependencies.html b/lms/templates/discussion/_js_dependencies.html
index b6e65f43c6..bde873fee1 100644
--- a/lms/templates/discussion/_js_dependencies.html
+++ b/lms/templates/discussion/_js_dependencies.html
@@ -1,7 +1,5 @@
<%namespace name='static' file='../static_content.html'/>
-<%include file="/mathjax_include.html" />
-
@@ -17,4 +15,3 @@
-
diff --git a/lms/templates/discussion/_js_head_dependencies.html b/lms/templates/discussion/_js_head_dependencies.html
new file mode 100644
index 0000000000..bde873fee1
--- /dev/null
+++ b/lms/templates/discussion/_js_head_dependencies.html
@@ -0,0 +1,17 @@
+<%namespace name='static' file='../static_content.html'/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lms/templates/discussion/index.html b/lms/templates/discussion/index.html
index 46bc35f34b..b0ca1a2ffa 100644
--- a/lms/templates/discussion/index.html
+++ b/lms/templates/discussion/index.html
@@ -5,10 +5,11 @@
<%block name="headextra">
<%static:css group='course'/>
+<%include file="_js_head_dependencies.html" />
%block>
<%block name="js_extra">
-<%include file="_js_dependencies.html" />
+<%include file="_js_body_dependencies.html" />
%block>
<%include file="../courseware/course_navigation.html" args="active_page='discussion'" />