foreach element - vanilla js