removed unnecessary includes
tried adding thomas's code in mine

placed it under:
dropdownArray.forEach(function(el){
removed "container" in html