Updated AJAX call due to "same origin" error.