diff --git a/app/main.js b/app/main.js
index 34907b55..e349a658 100644
--- a/app/main.js
+++ b/app/main.js
@@ -49,6 +49,7 @@ if (process.env.NODE_ENV === 'production') {
};
const app = routes(choo());
+ window.app = app;
app.use(metrics);
app.use(controller);
app.use(dragManager);
diff --git a/server/layout.js b/server/layout.js
index 576075f1..77e723d8 100644
--- a/server/layout.js
+++ b/server/layout.js
@@ -58,7 +58,7 @@ module.exports = function(state, body = '') {