Creating A RequireJS Service For AngularJS Applications