remove dependency on deprecated api dojo/_base/window