fixed bug with bootstrapping MM namespace. Need to use window.MM