JS muda html lang

document.documentElement.lang = lang;
TindyC