AngularJS file update