Fix Ajax "same origin policy" issue when port != 80 by using window.location.host