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