Tag javascript for each in array