wait for window onload before executing MM