Been suggested many times. Since the gecko source tree is already in the client, an instance of Javascript could be used *so long as it is a completely separate instance of JS from the one used by the in- world browser*.