Fix UPGRADE file
Generated JS should be enclosed in functions
Introduce meta tag to set locale with dumped files