If for some reason mw is not defined, you'll get "Cannot read property X of undefined" errors which will stop script execution.