Fix jQuery to use ajax with content type header