use getDefaultLanguage function to set language when no language cookie exists