javascript loop through queryselectorall