Updated Widgetizer so it can be better browserified.