Vanilla js - for each class