Simple JS functions to integrate localization in a web browser