// remoteScript.js (function() { // Define a global function window.remoteFunction = function() { console.log('Remote function called!'); // You can add more functionality here }; // Optionally, you can define more functions or objects window.anotherRemoteFunction = function(message) { console.log('Another remote function called with message:', message); }; })();