Added correct contentType headers to ajax calls