JavaScript that allows Cross Origin Resource Sharing ajax calls.