Bug 914414 - Refactor l10n.js

l10n.js (gaia branch) commit 6379bdc