Bugfix - JS error $location is not defined

$location is used but not injected
cause JS error