/* CORS requires the remote server to set the header.
Example:
Access-Control-Allow-Origin: *
**Permits any remote access
*/

var $name = $.get( "http://domain.com", function() {
	console.log( "success" );

})
.done(function() {
	console.log( "successfully completed the request" );
	console.log($name.responseText);

})
.fail(function() {
	console.log( "error" );

})
.always(function() {
	console.log( "finished" );

});