Fixed lasca.setLanguage method using obsolete languages.length value