JavaScript server and client globalization and localization resource delivery