I don't know much about using XPCOM from remote scripts.. are you trying
to use XPCOM from script, that is on the http://[ipaddress]?
you posted to right group - xpinstall should solve your problem. Just
pack your script in xpi file. If you don't know how to create xpi
package, then mabye http://xulplanet.com/tutorials/xultu/xpinstall.html
(with user's comments) may be good start.
Jan