diff --git a/debug/viewer.js b/debug/viewer.js
index <HASH>..<HASH> 100644
--- a/debug/viewer.js
+++ b/debug/viewer.js
@@ -180,6 +180,9 @@ var Viewer = {
 
             
             window.require = function (name) {
+                if (name == 'makerjs' || name == '../target/js/node.maker.js') {
+                    return _makerjs;
+                }
                 return module.exports;
             };
             Viewer.Constructor = null;
allow require of published makerjs and local