Moved assignment of $scope models to top of constructor