Update locales.
Reorganize and centralize javascript.