$(function () {
  $('#search_movie').submit(function(){
    var $form     = $(this);
    var movieName = $form.children('#movie_name_input').val();
    var movieYear = $form.children('#movie_year_input').val();

    var apiUrl    = $form.attr('action') + "/" + movieYear + "/" + movieName;

    $.get(apiUrl, function(movie){
      var movie_html = "";

      movie_html += "<h3>" + movie.name + "(" + movie.info.year + ")</h3>";
      movie_html += '<img src="' + movie.info.poster + '">';
      movie_html += "<h4>Combined Rating: " + movie.combined_rating + "</h4>";

      var movie_ratings = "<h4>Ratings: </h4>";
      $.each(movie.ratings, function(rating_site, rating) {
        movie_ratings += "<h4>" + rating_site + ":</h4>";
        $.each(rating, function(key, value) {
          movie_ratings += "<p>";
          movie_ratings += "<b>" + key + "</b>: " + value;
        });
      });
      movie_html += movie_ratings;

      $('#result').html(movie_html);
    });
    return false;
  });
});

@@ -390,16 +390,17 @@
 name + %22
+ 
 (%22 + mov
@@ -702,190 +702,112 @@
  += 
-%22
+'
 %3Ch4%3E
-%22 + rating_site + %22:%3C/h4%3E%22;%0A        $.each(rating, function(key, value) %7B%0A          movie_ratings += %22%3Cp%3E%22;%0A          movie_ratings += %22%3Cb%3E%22 + key + %22%3C/b%3E: %22 + value;%0A        %7D)
+%3Ca href=%22' + rating.url + '%22%3E';%0A        movie_ratings += rating_site + '%3C/a%3E:%3C/h4%3E ' + rating.score
 ;%0A  

Modify output on index page