Fixed localization of JavaScript