Updating AngularJS Structure