initialize global MM properly in widget.js