AngularJS file working