Added contentType header to AJAX calls.