Bug 1079860 - Use WebApp's manifests instead of locales.ini

Cache `length`. `for (var i = 0, l =  elements.length; i < l; i++)`