Bug 914414 - Refactor l10n.js. r=vingtetun