Fix bug where content-type doesn't exists ($.ajax was failing)