Web page localization in JavaScript