Infra for AJAX Call

 $.ajax({
            type: "POST",
            url: "/todos",
            data: "todo[name]=Andrew&todo[done]=false"})