diff --git a/public/js/extra.js b/public/js/extra.js
index af43c2b26..1dd867600 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -306,6 +306,7 @@ function finishView(view) {
}
});
//graphviz
+ var Viz = require("viz.js");
var graphvizs = view.find(".graphviz.raw").removeClass("raw");
graphvizs.each(function (key, value) {
try {
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
index abf2da12c..323d18f36 100644
--- a/public/views/foot.ejs
+++ b/public/views/foot.ejs
@@ -20,7 +20,7 @@
<% } %>
-
+
<%- include build/index-scripts %>
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 7e617dc57..ecce68d96 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -102,6 +102,7 @@
<% } %>
+
<%- include build/pretty-scripts %>
<%- include ga %>
diff --git a/public/views/slide.ejs b/public/views/slide.ejs
index ac34006bc..5b24ab4ea 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -102,6 +102,7 @@
<% } %>
+
<%- include build/slide-scripts %>