$(document).ready(function() {
  // This is called after the document has loaded in its entirety
  // This guarantees that any elements we bind to will exist on the page
  // when we try to bind to them

  // See: http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
  $('.comment-form').on('submit', function(event){
    event.preventDefault();

    var url = $(this).attr('action');
    var data = $(this).serialize();

    var request = $.ajax({
              url: url,
              method: 'POST',
              data: data
    });

    request.done(function(response){
      console.log(response);
      $('.comments ul').append(
        $('<li>' + response.content + '</li>')
      )
    });
  });

});

@@ -709,13 +709,12 @@
 ;%0A  %7D);%0A
-%0A
 %7D);%0A

Change spacing in js file