Bug 934726 - Use CustomEvent in l10n.js. r=stas

https://bugzilla.mozilla.org/show_bug.cgi?id=934726