added cors support to jquery