Saving Footer With AngularJS (Refactor)