Fixed $.ajaxSetup bug. This now works as expected.