Using window.<property> properly