$(function() {
  $("a.load_reviews").on("click", function(e) {
 //Send AJAX HIGH-LEVEL get request
  $.get(this.href).success(function(json) {
    var $ol = $("div.reviews ol")
    $ol.html(" ")
    json.forEach(function(review) {
      $ol.append("<li>" + review + "</li>");
    })
  })
 //Load response into HTML of page
   e.preventDefault();
 })
})

$(function() {
  $("a.load_reviews").on("click", function(e) {
 //Send AJAX HIGH-LEVEL get request
  $.get(this.href).success(function(json) {
    var $ol = $("div.reviews ol")
    $ol.html(" ")
    json.forEach(function(review) {
      $ol.append("<li>" + review + "</li>");
    });
  });
 //Load response into HTML of page
   e.preventDefault();
 });
});

$(function () {
  $(".js-more").on('click', function() {
    var id = $(this).data("id");
    $.get("/reviews/" + id + "/review_data", function(data) {
      $("#body-" + id).html(data["content"]);
    });
  });
});


refactor script code to reviews.js