ma su questo link dice che si potrebbe fare.....

http://www.mozilla.org/js/spidermonkey/tutorial.html