diff --git a/js/ui/save-html.js b/js/ui/save-html.js
index 772e1cbc8a..319bb269ae 100644
--- a/js/ui/save-html.js
+++ b/js/ui/save-html.js
@@ -3,8 +3,8 @@
// Saves content to HTML when asked to
define(
- ["core/utils"],
- function (utils) {
+ ["core/utils", "beautify-html", "core/beautify-options"],
+ function (utils, beautify, beautifyOpts) {
var msg, doc, conf;
var cleanup = function (rootEl) {
$(".removeOnSave", rootEl).remove();
@@ -154,7 +154,8 @@ define(
cleanup(rootEl);
str += rootEl.innerHTML;
str += "