old_contents: (function(){
  'use strict';
  
  var getPageJsonService = function($http){
    this.getPage = function(subreddit){
      subreddit = typeof subreddit !== 'undefined' ? subreddit : '';
      
      return $http.get('http://www.reddit.com/' + subreddit + '.json');
    };
      
  
  };
  
  angular
    .module('myApp')
    .service('getPageJsonService', [
      '$http',
      getPageJsonService
    ]);
    
  })();
new_contents: (function(){
  'use strict';
  
  var getPageJsonService = function($http){
    this.getPage = function(subreddit){
      subreddit = typeof subreddit !== 'undefined' ? subreddit : '';
      
      return $http.get('https://www.reddit.com/' + subreddit + '.json');
    };
      
  
  };
  
  angular
    .module('myApp')
    .service('getPageJsonService', [
      '$http',
      getPageJsonService
    ]);
    
  })();
  
subject: Update getPageJsonService.js