Using .className instead of setting attributes