Update AngularJS Structure