Javascript Loop Through Queryselectorall