Add class instead of setAttribute