Include $resource and $cookie in angular.js pull