$(document).ready(function(){
  $('#favorites-form').on('submit', function(event) {
    event.preventDefault();
    $.ajax({
      type: "POST",
      url: "http://10.0.2.89:3000/favorites",
      data: { bigOvenId: 126, userName: "dan" }
    }).then(function(response){
      $('body').append(response.status);
    });
  });
});
$(document).ready(function(){
  $('.container').on('click', '#favorite-icon', function(event) {
    var $favorite = $(event.target)
    $.ajax({
      type: "POST",
      //dan's localhost below
      url: "http://10.0.2.89:3000/favorites",
      data: $favorite.data()
    });
  });
});
Change selector for .on() function to .container
Change selector for .on() function to .container
