OK, added the more "compact" version. Do you suggest i make this a function along with the "defaultLanguage" variable to a separate JS file?