I used window in places where the variable/object scope might be ambiguous. I kind of assumed everyone knows mw is already a global object, but I can prefix it with window also.