Added $scope. before $compile and console.log($scope) in placeMarker and init functions