AngularJS references and empty controller