diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -280,7 +280,7 @@ exports.getInitWidgetsCode = function(widgetsContext) {
     }
 
     code += '$markoWidgets("' + ids + '");';
-    return;
+    return code;
 };
 
 
@@ -324,4 +324,4 @@ exports.defineRenderer = require('./defineRenderer');
 
 // registerWidget is a no-op on the server.
 // Fixes https://github.com/marko-js/marko-widgets/issues/111
-exports.registerWidget = function() {};
\ No newline at end of file
+exports.registerWidget = function() {};
actually return code from getInitWidgetsCode