js localization fixing