Expose the server-side proxy as wrapped versions of jQuery's ajax methods; convert the proxy to a normal straight-through proxy (i.e. don't wrap the response in a json object); use the whitelist to avoid creating an open proxy.