cors.js
Nicholas Zakas' helper method to help sort out the browser differences in CORS or Cross Origin Resource Sharing support.