A script tag with a src attribute is created and placed in the document.
The PHP file returns a call to a function with the JSON object as a parameter.