Update ajax.js
Update ajax.js

Allow options headers to be a function to retrieve dynamic headers.  Could extend to pass in some context that's useful for understanding headers required for the given request..
i18next/i18next-xhr-backend,i18next/i18next-xhr-backend