diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py
index b3eee7a..2205cf1 100644
--- a/IPython/html/widgets/widget.py
+++ b/IPython/html/widgets/widget.py
@@ -36,7 +36,7 @@ def init_widget_js():
if not (name == 'widget' or name == '__init__') and name.startswith('widget_'):
# Remove 'widget_' from the start of the name before compiling the path.
js_path = '/static/notebook/js/widgets/%s.js' % name[7:]
- display(Javascript(data='$.getScript("%s");' % js_path))
+ display(Javascript(data='$.getScript("%s");' % js_path), exclude="text/plain")
#-----------------------------------------------------------------------------