javascript change meta tag

JavaScript
document.querySelector('meta[name="description"]').setAttribute("content", _desc);
Source

Also in JavaScript: