ajax: cors param documented, added port fix for IEs

added cors parameter to documentation
added fix to IE in CORS (where location.host comes with :port)