Add term on client side.

I know that this should be proposed as a patch in mozilla-central.
I put it here to work on the patch and then I will make the appropriate patch to mozcentral.