fix sending custom headers in ajax request