Use `Y.config.win` in YUI, not `window`. Also, don't assume there's a window; this code may be running in Node.js.