Bug 882592: sync l10n.js with webL10n + better mozL10n.ready() method
factorize `setTextContent` to fix `localizeElement`