Obtenez ID de QuerySelector

var container = document.querySelector("#test");
Drab Dugong