tidied ajax call with custom header