Use X-Requested-With header so server can identify ajax requests