Bug 8942: Translation process breaks javascript (followup 1)