added semicolon after $scope.main