Try to avoid some mis-configuration problems.  Ajax calls go to the server which called the javascript