$(document).ready(function(){
  $('#favorites-form').on('submit', function(event) {
    event.preventDefault();
    $.ajax({
      type: "POST",
      url: "http://10.0.2.89:3000/favorites",
      data: { bigOvenId: 123, userName: "dan" }
    });
  });
});
$(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);
    });
  });
});
Write simple script to test with Sinatra server
Write simple script to test with Sinatra server

Wrote favorites.js with a simple ajax call to persist favorites to our DB via sinatra server. Was able to communicate to and from server in JSON successfully.
