checking $scope syntax