refactoring
refactoring with AngularJS Style Guide