(function() {
  // Routing functions
  window.shared || (window.shared = {});
  
  var baseUrl = 'https://somerville-teacher-tool.herokuapp.com'; // for local hacking
  window.shared.Routes = {
    student: function(id) {
      return baseUrl + '/students/' + id;
    },
    homeroom: function(id) {
      return baseUrl + '/homerooms/' + id;
    }
  };
})();
(function() {
  // Routing functions
  window.shared || (window.shared = {});

  window.shared.Routes = {
    student: function(id) {
      return '/students/' + id;
    },
    homeroom: function(id) {
      return '/homerooms/' + id;
    }
  };
})();

Make overview page links work nicely in different environments