var GetURL = function() {}; GetURL.prototype = { run: function(arguments) { arguments.completionFunction({"URL": document.URL}); } }; var ExtensionPreprocessingJS = new GetURL;