old_contents: 'use strict';
  
  (function() {
    angular.module('previewController', ['route-segment']).
  
    controller('PreviewController', ['$scope', '$routeSegment', 'SelectedFiles', function($scope, $routeSegment, SelectedFiles) {
      $scope.$routeSegment = $routeSegment;
      $scope.id = $routeSegment.$routeParams.id;
      if ($scope.id !== undefined) {
        var file = SelectedFiles.get($scope.id);
        if (file) {
          $scope.url = '/fixtures/content/' + file.title;
        }
      }
      $scope.files = SelectedFiles;
    }]);
  })();
  
new_contents: 'use strict';
  
  (function() {
    angular.module('previewController', ['route-segment']).
  
    controller('PreviewController', ['$scope', '$routeSegment', 'SelectedFiles', function($scope, $routeSegment, SelectedFiles) {
      $scope.$routeSegment = $routeSegment;
      $scope.id = $routeSegment.$routeParams.id;
      if ($scope.id !== undefined) {
        var file = SelectedFiles.get($scope.id);
        if (file) {
          $scope.url = 'fixtures/content/' + file.title;
        }
      }
      $scope.files = SelectedFiles;
    }]);
  })();
  
subject: fix relative URL