added i18n in javascript and messages translated