diff --git a/gradebook.html b/gradebook.html
index e237fbe16a..7dc9c3181e 100644
--- a/gradebook.html
+++ b/gradebook.html
@@ -1,15 +1,38 @@
-
-% for s in students:
-
-% for c in s['grade_info']['grade_summary']:
-${c['category']}
-
-% if 'subscores' in c:
- % for ss in c['subscores']:
-
${ss['summary']}
- % endfor
-% endif
-
-% endfor
-% endfor
-
+<%namespace name="profile_graphs" file="profile_graphs.js"/>
+
+
+
+
+
+
+
+
+
+
+ % for s in students:
+
+ %endfor
+
+
+ % for s in students:
+
+
+
+
+
+ % endfor
+
+
diff --git a/profile.html b/profile.html
index 5a753b914f..4d7915ae58 100644
--- a/profile.html
+++ b/profile.html
@@ -1,4 +1,5 @@
<%inherit file="main.html" />
+<%namespace name="profile_graphs" file="profile_graphs.js"/>
<%!
from django.core.urlresolvers import reverse
@@ -9,7 +10,7 @@