Cleaned up the remaining cross domain handling, as we are using XHR with CORS to fetch the resources.