setup the jsonp request/crossdomain request for both client/server