log $scope and $location