Adding properties to $scope object: loadMap and getPlacesToMap.