Simplified js function for version/lang switcher