// Toggles More Info / Hide Info on Experiment
$(document).ready(function() {
  $(document).on('click','#reveal-info', function(event){
    $('.reveal-down').slideToggle(150);
    $(this).text(function(i, text){
      return text === "More Information" ? "Hide Information" : "More Information";
    })
  })
  $(document).on('click','.join-experiment-btn', function(event){
    event.preventDefault();
    $.ajax({
      url: window.location.pathname,
      type: 'PATCH'
    }).done(function(response) {
      var content =  JSON.parse(response);
      $("#landing-ajax").html(content);
    });
  });
});

@@ -403,52 +403,111 @@
     
-$.ajax(%7B%0A      url: window.location.pathname
+var experiment_id = $('.experiment').attr('id')%0A    $.ajax(%7B%0A      url: '/experiments/' + experiment_id
 ,%0A  

refactor update experiments to allow for ajaxifying