refactorings (moved i18n & directives into app.js)