added a missing line into the example code in the instructions for the legacy approach; fixed a typo in l10n.ug.js