Use $http instead of $.ajax and remove omnivore as it's not required.