chore($location): use `$window` instead of `window`

Fix one place were there was a reference to `window` and not to `$window`