Cosmetic fix

$location instead of $window.location in order to follow angular's
logics.