adding some AngularJS code