AngularJS: Extend Object