Use explicit window object instead of ambiguous 'this'