add X-Requested-With header to xhr, closes gh-61