Making the AJAX call work with the current domain