Optimized $.ajaxSetup code and oddities
Merge pull request #2683 from ryun/patch-6

Optimized $.ajaxSetup code and fixed syntax oddities