refactoring app.js, local management for internationalization and use of wikimedia/jquery.i18n to manage i18n strings