Quick function to include in vanilla Javascript packages to do cross-domain calls. It communicates using the current DOM to a remote URL, and retrieves the JSON return to fire in a temporary function that is sent to a function in the current package.
Should work in all modern browsers regardless of what is currently used for Javascript libraries.