Changed i18n. Refactored js.