i18n escape html, navigator userLanguage, clean up code